<div class="operateBox"><h2><?php echo $this->title?></h2></div>
<div class="dir-tree" id="selectList"></div>
<p><input type="button" class="submit" value="确定选择" onclick="qu_selected()" /></p>
<script type="text/javascript">
dirTree_li('#selectList',  '?u=<?php e_a($_GET['u'])?>&q=a&id=');

// set	
Table_Ad.init('#selectList').<?php echo isset($_GET['M']) ?'creSelect' :'singleSelect';?>();
function qu_selected(){
var  wp = window.opener,dA =[], slA=$('#selectList .ui-selected');
	if (slA.length<1)
		return alert(language._('qing xian xuan ze'));
	slA.each(function(){
		var a = $(this),d={};
        d.id = a.attr('i_ID');
        d.name = a.find('.title').text() ;
		dA.push(d);
	});
	wp.<?php echo ($_GET['callFun'] ?realFunName($_GET['callFun']).'(dA)' :'$_obj("'.realFunName($_GET['setObj']) .'").value=dA[0].id')?>;
    window.close();
}
</script>